<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="not"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div id="iseven-div" class="form-group" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_even')}:</label>
        <div class="col-xs-12 col-sm-8">      
            <select  id="c-iseven" class="form-control selectpicker" name="is_even">
                {foreach name="isevenList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
            <span style="color: rgb(207, 82, 9);">今天是第{$week}周</span>
        </div>
    </div>
    <div id="weekarr-div" class="form-group" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weekarr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-weekarr" class="form-control selectpicker" name="weekarr[]" multiple="true">
                {foreach name="weekarrList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div id="months-div" class="form-group" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Months')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-months" class="form-control" name="row[months]" type="text">
        </div>
    </div>

    <div class="form-group">
        <div class="col-xs-12 col-sm-12">
            <h5 style="text-align: center;font-weight: 600;">开始时间</h5>
            <div class="well">
                <div style="display: flex;">
                    <div class="form-group" style="margin-right: 20px; width: 50%;">
                        <label class="control-label label-margin">{:__('时间')}:</label>
                        <div class="col-xs-12">
                            <input id="c-nottime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[nottime]" type="text" value="{:date('Y-m-d')}">
                        </div>
                    </div>
                    <div class="form-group" style="margin-right: 20px; width: 50%;">
                        <label class="control-label label-margin">{:__('时间段')}:</label>
                        <div class="col-xs-12">
                            <input id="c-startperiod" data-rule="required" class="form-control datetimepicker" data-date-format="HH:00:00" data-use-current="true" name="row[startperiod]" type="text" value="{:date('H:i:s')}">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-xs-12 col-sm-12">
            <h5 style="text-align: center;font-weight: 600;">结束时间</h5>
            <div class="well">
                <div style="display: flex;">
                    <div class="form-group" style="margin-right: 20px; width: 50%;">
                        <label class="control-label label-margin">{:__('时间')}:</label>
                        <div class="col-xs-12">
                            <input id="c-endtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d')}">
                        </div>
                    </div>
                    <div class="form-group" style="margin-right: 20px; width: 50%;">
                        <label class="control-label label-margin">{:__('时间段')}:</label>
                        <div class="col-xs-12">
                            <input id="c-endperiod" data-rule="required" class="form-control datetimepicker" data-date-format="HH:00:00" data-use-current="true" name="row[endperiod]" type="text" value="{:date('H:i:s')}">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
